﻿#ifndef _OI_PLSCANNERCORE_LEADER_UDP_HPP_
#define _OI_PLSCANNERCORE_LEADER_UDP_HPP_

#include "PLScannerCore/OiPLScannerCore.hpp"

namespace Oi
{
    namespace PLScannerCore
    {
        class OI_PLSCANNER_CORE_API Leader_Udp : public QObject
        {
            Q_OBJECT

        public:
            Leader_Udp(QObject* parent = nullptr);
            ~Leader_Udp();

        public:
            void init();
            void exit();

        public:
            double value() const;


        public slots:
            void onUdpReadReady();


        public:
            static Leader_Udp* instance();

        private:
            OI_DISABLE_COPY(Leader_Udp);
            OI_DECLARE_IMPL(Leader_Udp);
        };
    }

}


#endif